/*!
 * Page: pages/form/index/index
 * License: MIT
 * Created: 2019-08-29 11:44
 */

@import '../../var';
page {
    background-color: $bgcolor-gray;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.help {
    width: 36rpx;
    height: 36rpx;
    position: absolute;
    right: 363rpx;
}

.header {
    margin-top: 20rpx;
    padding: 40rpx 30rpx;
    background-color: #fff;
    radio-group {
        label:not(:first-child) {
            margin-left: 80rpx;
        }
        text {
            font-size: 32rpx;
            color: $title-color;
            margin-left: 16rpx;
            &.disabled {
                color: $info-color;
            }
        }
    }
    .desc {
        margin-top: 28rpx;
        font-size: 22rpx;
        color: $info-color;
    }
}

.content {
    margin-top: 20rpx;
    padding: 30rpx;
    background: #fff;
    .title {
        padding-bottom: 24rpx;
        font-size: 30rpx;
        font-weight: bold;
    }
    textarea {
        width: 100%;
        height: 250rpx;
        font-size: 32rpx;
        margin-bottom: 30rpx;
    }
    .images {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        .img {
            width: 156rpx;
            height: 156rpx;
            background: #f5f5f5;
            border-radius: 6rpx;
            position: relative;
            &:not(:nth-child(-n + 4)) {
                margin-top: 14rpx;
            }
            &:not(:nth-child(4n-3)) {
                margin-left: 14rpx;
            }
            image {
                width: 100%;
                height: 100%;
            }
            .icon {
                width: 56rpx;
                height: 48rpx;
            }
            .del {
                position: absolute;
                top: 0;
                left: 0;
                z-index: 2;
                width: 58rpx;
                height: 58rpx;
            }
        }
    }
    .refund {
        margin: 40rpx 0 10rpx;
        height: 98rpx;
        padding: 0 24rpx;
        display: flex;
        align-items: center;
        border-radius: 12rpx;
        border: 2rpx solid #ccc;
        font-size: 30rpx;
        color: $title-color;
        input {
            flex: 1;
            text-align: center;
        }
    }
}

.order-list {
    margin-top: 20rpx;
    padding: 24rpx 30rpx;
    background: #fff;
    .list-title {
        padding-bottom: 24rpx;
        font-size: 30rpx;
        font-weight: bold;
    }
    .item {
        margin-bottom: 16rpx;
        flex-direction: column;
        width: 100%;
        color: $text-color;
        background-color: $bgcolor-light;
        border-radius: 10rpx;
        .productInfo {
            display: flex;
            width: 100%;
            height: 120rpx;
            margin-top: 20rpx;
            background-color: $bgcolor-gray;
            .productImg {
                width: 120rpx;
                height: 120rpx;
                image {
                    width: 100%;
                    height: 100%;
                }
            }
            .productPrice {
                display: flex;
                flex: 1;
                align-items: center;
                justify-content: space-between;
                height: 100%;
                padding: 18rpx 20rpx 18rpx 20rpx;
                .title {
                    color: $title-color;
                    font-size: 24rpx;
                }
                .productCount {
                    color: $info-color;
                    font-size: 22rpx;
                    text-align: right;
                    &-price {
                        color: $title-color;
                        font-weight: 600;
                    }
                }
                .options {
                    color: $info-color;
                    font-size: 20rpx;
                }
            }
        }
        .productFooter {
            display: flex;
            flex: 1;
            align-items: center;
            justify-content: space-between;
            padding: 24rpx 0;
            .price {
                color: $title-color;
                font-size: 24rpx;
                text {
                    color: $info-color;
                }
            }
        }
    }
    .order-row {
        margin-top: 8rpx;
        font-size: 26rpx;
        color: $info-color;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.submit-wrap {
    height: 200rpx;
    background: #fff;
}

.submit {
    background: #fff;
    button {
        height: 88rpx;
        line-height: 88rpx;
        color: #fff;
        border-radius: 44rpx;
        &:disabled {
            background-color: #e4e5e5;
            color: $title-color;
        }
    }
}

//弹出框
.detailBox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    .contentBox {
        position: fixed;
        bottom: 0;
        width: 100%;
        padding: 34rpx 32rpx;
        color: $title-color;
        background-color: $bgcolor-light;
        border-radius: 24rpx 24rpx 0 0;
        .titleBox {
            display: flex;
            flex: 1;
            align-items: center;
            justify-content: space-between;
            .title {
                font-size: 32rpx;
                font-weight: bold;
            }
            .cancel {
                font-size: 60rpx;
                height: 44rpx;
                line-height: 44rpx;
                overflow: hidden;
            }
        }
        .content {
            padding: 0;
            margin-top: 38rpx;
            max-height: 520rpx;
            overflow: auto;
            font-size: 30rpx;
            color: $info-color;
        }
        .btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 686rpx;
            height: 88rpx;
            margin: 48rpx auto 0;
            color: #ffffff;
            font-weight: bold;
            font-size: 32rpx;
            background-color: $primary-color;
            border-radius: 44rpx;
        }
    }
}

//样式重置
wx-radio .wx-radio-input.wx-radio-input-checked {
    border-color: $primary-color !important;
    background-color: $primary-color !important;
    &:before {
        content: '\EA08';
        color: #ffffff;
        font-size: 18px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -48%) scale(0.73);
    }
}